import lejos.nxt.*;

public class Main {
	public static void main(String[] arg) throws InterruptedException {
		DebugLogger l = new DebugLogger();
		MowController mowCtrl = new MowController();
		mowCtrl.start();
		
		LineDetector lineDetector = new LineDetector(mowCtrl);
		lineDetector.calibrate();
		lineDetector.start();
		
		DebugLogger.write("Calibrating done", true);
		Button.waitForPress();
		WaitController waitCtrl = new WaitController(new AudioAlert(), mowCtrl);
		ObstacleDetector boom = new ObstacleDetector(waitCtrl);
		
		DebugLogger.write("Ready to work!", true);
	}
}